import request from '@/utils/request'

// 查询宝鸡收货报列表
export function listAddress(query) {
  return request({
    url: '/system/address/list',
    method: 'get',
    params: query
  })
}

// 查询宝鸡收货报详细
export function getAddress(id) {
  return request({
    url: '/system/address/' + id,
    method: 'get'
  })
}

// 新增宝鸡收货报
export function addAddress(data) {
  return request({
    url: '/system/address',
    method: 'post',
    data: data
  })
}

// 修改宝鸡收货报
export function updateAddress(data) {
  return request({
    url: '/system/address',
    method: 'put',
    data: data
  })
}

// 删除宝鸡收货报
export function delAddress(id) {
  return request({
    url: '/system/address/' + id,
    method: 'delete'
  })
}
// 解析
export function getanalysisAddress() {
  return request({
    url: '/system/address/analysisAddr',
    method: 'get'
  })
}